package com.chan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;
import java.util.Map;

/**
 * Created by ${chan} on 2016/9/25.
 */
@Controller
public class RedisSessionTestController {

    @RequestMapping("/testsession")
    public String testSession(HttpSession session, Map map){
        System.err.println("sessionId:"+session.getId());
        map.put("sessionId",session.getId());
        return "sessionTest" ;
    }
}
